
import {focusUser} from "../../api/um";


Component({

  /**
   * 组件的属性列表
   */
  properties: {
    categoryId: {
      type: String,
      value: ''
    },
    contentList: {
      type: Array,
      value: []
    },
    text: {
      type: String,
      value: ''
    },
  },

  /**
   * 组件的初始数据
   */
  data: {},


  /**
   * 组件的方法列表
   */
  methods: {
    goDetail(e) {
      const {item} = e.currentTarget.dataset;
      wx.navigateTo({
        url: `/pageA/pages/contentDetail/index?id=${item.id}&title=${this.data.text || '怀青有约'}`,
      })
    },
  }
})